﻿@model DataMongo.Entities.Category
@{
    ViewBag.Title = "CategoryAdd";
}

<div class="alert alert-info alert-dismissable">
    Add State (+)
</div>
<div id="page-wrapper">

    <div class="row">
        <div class="col-lg-6">

          @using (Html.BeginForm("CategoryAdd", "SuperAdmin", FormMethod.Post, new { enctype = "multipart/form-data" }))
          {


              @Html.AntiForgeryToken()
              @Html.ValidationSummary(true)

              <div class="form-group">
                  <label>Title</label>
                  @Html.TextBoxFor(m => m.ShortDescription, new {@class = "form-control"})
        
              </div>

              <div class="form-group">
                  <label>Full Description</label>
                  @Html.TextBoxFor(m => m.FullDescription, new {@class = "form-control"})
              </div>

              <div class="form-group">
                  <label>Tag</label>
                  @Html.TextBoxFor(m => m.Tag, new {@class = "form-control"})
              </div>
              <div class="form-group">
                  <label>Parent Category</label>
                  @Html.DropDownListFor(m => m.ParentId,Model.CategoryList, new { @class = "form-control" })
              </div>

              <button type="submit" class="btn btn-default">Save</button>
                @Html.ActionLink("Back To List", "Category", "SuperAdmin", "",new { @class = "btn btn-info" })

          }

        </div>
     
    </div><!-- /.row -->

</div>